package com.lingkang.flychat.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class MessageList {
    @Id(autoincrement = true)//自动增长
    private Long id;
    @Index
    private String username;
    private Integer notReadNumber;
    private int atSign;
    private String img;
    private String title;
    private String description;
    //类型：1好友、2群组、3...
    private int type;
    @Index
    private Date lastTime;

    @Override
    public String toString() {
        return "MessageList{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", notReadNumber=" + notReadNumber +
                ", atSign=" + atSign +
                ", img='" + img + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", type=" + type +
                ", lastTime=" + lastTime +
                '}';
    }

    @Generated(hash = 932827881)
    public MessageList(Long id, String username, Integer notReadNumber, int atSign,
            String img, String title, String description, int type, Date lastTime) {
        this.id = id;
        this.username = username;
        this.notReadNumber = notReadNumber;
        this.atSign = atSign;
        this.img = img;
        this.title = title;
        this.description = description;
        this.type = type;
        this.lastTime = lastTime;
    }
    @Generated(hash = 1974901781)
    public MessageList() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getUsername() {
        return this.username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public Integer getNotReadNumber() {
        return this.notReadNumber;
    }
    public void setNotReadNumber(Integer notReadNumber) {
        this.notReadNumber = notReadNumber;
    }
    public int getAtSign() {
        return this.atSign;
    }
    public void setAtSign(int atSign) {
        this.atSign = atSign;
    }
    public String getImg() {
        return this.img;
    }
    public void setImg(String img) {
        this.img = img;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getDescription() {
        return this.description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public Date getLastTime() {
        return this.lastTime;
    }
    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

}
